import request from '../../utils/request'

//获取菜单数据
export const reqMenuList =(params)=>{
    return request.get('/menu/list',{params})
}

//菜单权限数据
export const reqUserGetmenu=()=>{
    return request.get('/user/getmenu')
}

//新增权限
export const reqUserSetmenu=(data)=>{
    return request.post('/user/setmenu',data)
}


//账号管理列表
export const reqAuthAdmin=(params)=>{
    return request.get('/auth/admin',{params})
}

//菜单下拉权限
export const reqMenuSelectList=()=>{
    return request.get('/menu/selectlist')
}

//用户信息修改
export const reqUpdateUser=(data)=>{
    return request.post('/update/user',data)
}


//用户菜单权限
export const reqMenuPermissions=()=>{
    return request.get('/menu/permissions')
}
